#include <stdio.h>

int main()
{
	int arr[]={0,1,2,3,4,5,6,7,8,9};
	int i=0,z=0,sum=0;
	while (i<10)
	{
		sum=sum+arr[i];//sum+=arr[i];
		z=arr[i];//
		printf("%d\n",z);//
		i++;
	}
	printf("%d\n",sum);
	return 0;
}
